import request from '@/utils/request'

// 查询组织生活会议记录列表
export function listMetting(query) {
  return request({
    url: '/business/metting/list',
    method: 'get',
    params: query
  })
}

// 查询组织生活会议记录详细
export function getMetting(id) {
  return request({
    url: '/business/metting/' + id,
    method: 'get'
  })
}

// 新增组织生活会议记录
export function addMetting(data) {
  return request({
    url: '/business/metting',
    method: 'post',
    data: data
  })
}

// 修改组织生活会议记录
export function updateMetting(data) {
  return request({
    url: '/business/metting',
    method: 'put',
    data: data
  })
}

// 删除组织生活会议记录
export function delMetting(id) {
  return request({
    url: '/business/metting/' + id,
    method: 'delete'
  })
}

// 导出组织生活会议记录
export function exportMetting(query) {
  return request({
    url: '/business/metting/export',
    method: 'get',
    params: query
  })
}